{% set url ="" %}
{%block référencement%}
    <div> 
        <div id="blockAnnuaire">
            <div id="list_annuaire">
                <ul  id="annuaireList">
                    {%for annuaire in listOrdonneesAnnuaires%}
                        {%if annuaire in listInvalidAnnuaire%}
                            {%if annuaire.id == entity.annuaire.id%}
                                <li><a id="{{annuaire.id}}" class="actual_annuaire" href="{{annuaire.url}}" target="site_frame">{{annuaire.nom}}</a></li>
                                {% set url = annuaire.url %}
                            {%else%}
                                <li><span id="{{annuaire.id}}" class="invalid_annuaire">{{annuaire.nom}}</span></li>                        
                            {%endif%} 
                        {%else%}
                            <li><a  id="{{annuaire.id}}" class="valid_annuaire" href="{{annuaire.url}}" target="site_frame"> {{annuaire.nom}}</a></li>
                        {%endif%}
                    {%endfor%}
                </ul>
            </div>
            <div id="pagination" class="holder">
            </div>
        </div>
        <div class="_frame">
            {%if url == ""%}
                <iframe name="site_frame"id="site_frame" height="800" width="600"></iframe>
            {%else%}
                <iframe name="site_frame" id="site_frame" src="{{url}}"  height="800" width="600"></iframe>
            {%endif%}
        </div>
    </div>        
{%endblock référencement%}

